import { Injectable } from "@nestjs/common";
import { Config } from "@prisma/client";
import { PrismaService } from "src/common/prisma/prisma.service";

@Injectable()
export class CustomConfigService {
    constructor(private prisma: PrismaService) { }

    async getConfig(): Promise<Config> {
        return this.prisma.config.findFirstOrThrow();
    }
}